// 指令的配置对象 => 决定将来做什么
export const imgerror = {
  inserted(el, binding) {
    el.onerror = () => {
      el.src = binding.value
    }
  }
}

export const color = {
  inserted(el, binding) {
    el.style.color = binding.value
  }
}
